/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pop3server;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

/**
 *
 * @author canal65
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws IOException {
        
        // TODO code application logic here
        try{
            Socket s;
            ServerSocket ss=new ServerSocket(110);
            
            while(true){
                System.out.println("Esperando conexion...");
                s=ss.accept();
                System.out.println("Incoming...");
                new Thread(new popHandler(s)).start();

            }
        }catch(Exception e){
            System.out.println("OOPS! "+e);
        }
    }

}
